import {request,requestTest} from '../../utils/request';
import {CADILLAC_URL,isDebuger} from '../../utils/constants';
import {pageParams} from '../../utils/index';
// 列表查询
export function fetch(params) {
  if(isDebuger){
    return require("./../../../json/list").list;
  } else {
    return request(CADILLAC_URL+'/menuController/getPageMenus?page=' + pageParams(params.pageParam))
  }
}
// 保存
export function save({ data }) {
  if(isDebuger){
    return require("./../../../json/list").save;
  } else {
    return request(CADILLAC_URL+'/menuController/getPageMenus?page' +data);
  }
}
// 删除
export function del({ data }) {
  if(isDebuger){
    return require("./../../../json/list").save;
  } else {
    return request(CADILLAC_URL+'/menuController/getPageMenus?page' +data);
  }
}
